# Dockerfile for gxd-eureka-server
# 1、Build with:
# docker build -t gxd-eureka-server .
# 2、tag
# docker tag gxd-eureka-server 192.168.45.201:5000/gxd-eureka-server
# 3、push
# docker push  192.168.45.201:5000/gxd-eureka-server
# 4、Run with:
#docker run -p 1111:1111 -d -v /opt/gxdapp/gxd-eureka-server/logs:/app/logs  -e spring.profiles.active=server1 --net host  --name gxd-eureka-server 192.168.45.201:5000/gxd-eureka-server
FROM openjdk:8-jre-alpine
MAINTAINER gongjing <jsjgongjing@sina.com>

RUN set -x \
    && apk add --no-cache busybox-extras
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone && mkdir /app
WORKDIR /app
COPY gxd-eureka-server-0.0.2.jar /app
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app/gxd-eureka-server-0.0.2.jar","--spring.config.location=/app/application.yml"]
EXPOSE 1113
EXPOSE 1114
